﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CommerceOne.Common
{
    public static class DisplayUtil
    {
        public static string GetDisplayRatingStar(decimal rating)
        {
            return string.Empty;
        }

        public static string GetDisplayPrice(decimal? price)
        {
            return price.Value.ToString("###,###,###,##0");
        }

        public static string GetImageUrl(string image)
        {
            const string root = "http://localhost:50353/";
            if (image.IndexOf(root) == 0) return image;
            return root + image;
        }
    }
}